package com.lyf.scm.common.enums;


/**
 * redis缓存枚举类
 *
 * @author wangchlei
 * @date 2020/09/20
 */
public enum PlanRedisCacheEnum {
    /**
     * 默认缓存
     */
    DEFAULT_CACHE("DEFAULT_CACHE", 3),
    /**
     * 所有门店缓存
     */
    PLAN_STORE_CACHE("PLAN_STORE_CACHE", 18),
    /**
     * 所有直营门店缓存
     */
    PLAN_DIRECT_STORE_CACHE("PLAN_DIRECT_STORE_CACHE", 18);

    /**
     * 缓存名称
     */
    private String cacheName;
    /**
     * 到期时长(小时为单位)
     */
    private Integer expireDuration;

    PlanRedisCacheEnum(String cacheName, Integer expireDuration) {
        this.cacheName = cacheName;
        this.expireDuration = expireDuration;
    }

    public String getCacheName() {
        return cacheName;
    }

    public Integer getExpireDuration() {
        return expireDuration;
    }
}
